﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataLayer.Model.Objects;

namespace BuisnessLayer
{
    public class ProfileManager
    {

        public static void SaveProfileData(IList<Profile> pProfiles)
        {
            var writer = new ProfileWriter();
            foreach (var profile in pProfiles)
            {
                writer.Save(profile);
            }
        }

        public static IList<Profile> ReadProfiles(){
            return ProfileReader.ReadProfiles();
        }
        public static bool IsExist(String pProfileName){
            return ProfileReader.ProfileExists(pProfileName);
        }
    }
}
